package cn.wolfcode.repository;

import cn.wolfcode.domain.Destination;
import cn.wolfcode.domain.Region;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface DestinationRepository extends MongoRepository<Destination,String>{

    List<Destination> findByIdIn(List<String> rid);

    List<Destination> findByParentName(String Cname);

    List<Destination> findByParentId(String id, Pageable pageable);

}
